package com.woniuxy.mapper;

import com.woniuxy.pojo.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AdminMapper {
    public Admin selectAdminByName(@Param("name") String name);
    //public Admin selectAdminByNameAndAge(String name,int age);
    public Admin selectAdminByNameAndAge(@Param("name") String name, @Param("age") int age);
    public Admin selectAdminByEntity(Admin admin);
    public Admin selectAdminByMap(Map<String,Object> map);
    public List<Admin> selectAdminsByAge(@Param("age") int age);
    public List<Admin> selectAdminsBySort(@Param("field") String field,@Param("sort") String sort);

}
